<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $dateStr = date('Y-m-d H:i:s');
        DB::table('admin')->insert([
            ['name' => 'admin', 'pwd' => encrypt('123456'), 'created_at' => $dateStr, 'updated_at' => $dateStr],
            ['name' => 'wangxin', 'pwd' => encrypt('123456'), 'created_at' => $dateStr, 'updated_at' => $dateStr],
            ['name' => 'liuzhiwei', 'pwd' => encrypt('123456'), 'created_at' => $dateStr, 'updated_at' => $dateStr]
        ]);
    }
}
